import { Button } from 'antd';
import { useHistory, history } from 'umi';

const NotFound = () => {
  // const history = useHistory();
  const goHome = () => {
    history.push('/home');
  };

  return (
    <>
      <div>404 not found...</div>
      <Button type="primary" onClick={goHome}>
        Primary Button
      </Button>
    </>
  );
};

export default NotFound;
